package com.apimarket.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class NginxTest {
    @RequestMapping(value = "/ntest", method = {RequestMethod.POST})
    public String testRedis(String username){
        System.out.println(username);
        return username;
    }

    @RequestMapping(value = "/n1test", method = {RequestMethod.POST})
    public String testn(){
        System.out.println("n1test");
        return "username";
    }
}
